package com.wuwei.elearning.question.controller;


import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuwei
 * @since 2024-02-01
 */
@RestController
@RequestMapping("/elearning/chapter")
@CrossOrigin
public class ChapterController {

//    @Resource
//    private ChapterMapper chapterMapper;
//
//    @Resource
//    private SubjectMapper subjectMapper;
//
//    @GetMapping("getBySubjectId/{subjectId}")
//    public Result<List<Chapter>> getBySubjectId(@PathVariable("subjectId") Long subjectId){
//        LambdaQueryWrapper<Chapter> queryWrapper = new LambdaQueryWrapper<>();
//        queryWrapper.eq(Chapter::getSubjectId,subjectId);
//
//        List<Chapter> chapters = chapterMapper.selectList(queryWrapper);
//        return Result.ok(chapters);
//    }
//
//


}

